package com.chuyu.jzwboa.activity.message;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.chuyu.jzwboa.R;
import com.chuyu.jzwboa.base.MVPBaseActivity;
import com.chuyu.jzwboa.presenter.message.MsgSetPresenter;
import com.chuyu.jzwboa.utils.sys.StatusBarUtils;
import com.chuyu.jzwboa.view.iview.message.IMsgSetView;
import com.facebook.drawee.view.SimpleDraweeView;

import butterknife.BindView;
import butterknife.ButterKnife;


/**
 *@description  消息设置
 */
public class MsgSetActivity extends MVPBaseActivity<IMsgSetView, MsgSetPresenter>
        implements IMsgSetView {


    @BindView(R.id.titel_left_img)
    SimpleDraweeView titelLeftImg;
    @BindView(R.id.title_text)
    TextView titleText;
    @BindView(R.id.title_right_img)
    SimpleDraweeView titleRightImg;
    @BindView(R.id.titel_rl)
    RelativeLayout titelRl;

    @Override
    protected int initContent() {
        return R.layout.activity_msg_setting;
    }

    @Override
    protected void initView() {
        titleText.setText("消息设置");
        /**
         * 动态设置状态栏高度
         */
        int statusHeight = StatusBarUtils.getStatusHeight(this);
        titelRl.setPadding(0, statusHeight, 0, 0);
    }

    @Override
    protected void initData() {

    }

    @NonNull
    @Override
    public MsgSetPresenter createPresenter() {
        return new MsgSetPresenter();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }
}
